# This Python file uses the following encoding: utf-8
#############################################################################
##
## Copyright (C) 2020 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of Qt for Python.
##
## $QT_BEGIN_LICENSE:LGPL$
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this file in
## accordance with the commercial license agreement provided with the
## Software or, alternatively, in accordance with the terms contained in
## a written agreement between you and The Qt Company. For licensing terms
## and conditions see https://www.qt.io/terms-conditions. For further
## information use the contact form at https://www.qt.io/contact-us.
##
## GNU Lesser General Public License Usage
## Alternatively, this file may be used under the terms of the GNU Lesser
## General Public License version 3 as published by the Free Software
## Foundation and appearing in the file LICENSE.LGPL3 included in the
## packaging of this file. Please review the following information to
## ensure the GNU Lesser General Public License version 3 requirements
## will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
##
## GNU General Public License Usage
## Alternatively, this file may be used under the terms of the GNU
## General Public License version 2.0 or (at your option) the GNU General
## Public license version 3 or any later version approved by the KDE Free
## Qt Foundation. The licenses are as published by the Free Software
## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
## included in the packaging of this file. Please review the following
## information to ensure the GNU General Public License requirements will
## be met: https://www.gnu.org/licenses/gpl-2.0.html and
## https://www.gnu.org/licenses/gpl-3.0.html.
##
## $QT_END_LICENSE$
##
#############################################################################

"""
This file contains the exact signatures for all functions in module
Qt.QtRemoteObjects, except for defaults which are replaced by "...".
"""

# Module Qt.QtRemoteObjects
import Qt
try:
    import typing
except ImportError:
    from Qt.support.signature import typing
from Qt.support.signature.mapping import (
    Virtual, Missing, Invalid, Default, Instance)

class Object(object): pass

import shiboken2 as Shiboken
Shiboken.Object = Object

import Qt.QtCore
import Qt.QtRemoteObjects


class QAbstractItemModelReplica(Qt.QtCore.QAbstractItemModel):
    def availableRoles(self) -> typing.List: ...
    def columnCount(self, parent:Qt.QtCore.QModelIndex=...) -> int: ...
    def data(self, index:Qt.QtCore.QModelIndex, role:int=...) -> typing.Any: ...
    def flags(self, index:Qt.QtCore.QModelIndex) -> Qt.QtCore.Qt.ItemFlags: ...
    def hasChildren(self, parent:Qt.QtCore.QModelIndex=...) -> bool: ...
    def hasData(self, index:Qt.QtCore.QModelIndex, role:int) -> bool: ...
    def headerData(self, section:int, orientation:Qt.QtCore.Qt.Orientation, role:int) -> typing.Any: ...
    def index(self, row:int, column:int, parent:Qt.QtCore.QModelIndex=...) -> Qt.QtCore.QModelIndex: ...
    def isInitialized(self) -> bool: ...
    @typing.overload
    def parent(self) -> Qt.QtCore.QObject: ...
    @typing.overload
    def parent(self, index:Qt.QtCore.QModelIndex) -> Qt.QtCore.QModelIndex: ...
    def roleNames(self) -> typing.Dict: ...
    def rowCount(self, parent:Qt.QtCore.QModelIndex=...) -> int: ...
    def selectionModel(self) -> Qt.QtCore.QItemSelectionModel: ...
    def setData(self, index:Qt.QtCore.QModelIndex, value:typing.Any, role:int=...) -> bool: ...


class QRemoteObjectAbstractPersistedStore(Qt.QtCore.QObject):

    def __init__(self, parent:typing.Optional[Qt.QtCore.QObject]=...): ...

    def restoreProperties(self, repName:str, repSig:Qt.QtCore.QByteArray) -> typing.List: ...
    def saveProperties(self, repName:str, repSig:Qt.QtCore.QByteArray, values:typing.Sequence): ...


class QRemoteObjectDynamicReplica(Qt.QtRemoteObjects.QRemoteObjectReplica): ...


class QRemoteObjectHost(Qt.QtRemoteObjects.QRemoteObjectHostBase):

    @typing.overload
    def __init__(self, address:Qt.QtCore.QUrl, parent:Qt.QtCore.QObject): ...
    @typing.overload
    def __init__(self, address:Qt.QtCore.QUrl, registryAddress:Qt.QtCore.QUrl=..., allowedSchemas:Qt.QtRemoteObjects.QRemoteObjectHostBase.AllowedSchemas=..., parent:typing.Optional[Qt.QtCore.QObject]=...): ...
    @typing.overload
    def __init__(self, parent:typing.Optional[Qt.QtCore.QObject]=...): ...

    def hostUrl(self) -> Qt.QtCore.QUrl: ...
    def setHostUrl(self, hostAddress:Qt.QtCore.QUrl, allowedSchemas:Qt.QtRemoteObjects.QRemoteObjectHostBase.AllowedSchemas=...) -> bool: ...


class QRemoteObjectHostBase(Qt.QtRemoteObjects.QRemoteObjectNode):
    BuiltInSchemasOnly       : QRemoteObjectHostBase = ... # 0x0
    AllowExternalRegistration: QRemoteObjectHostBase = ... # 0x1

    class AllowedSchemas(object):
        BuiltInSchemasOnly       : QRemoteObjectHostBase.AllowedSchemas = ... # 0x0
        AllowExternalRegistration: QRemoteObjectHostBase.AllowedSchemas = ... # 0x1
    def addHostSideConnection(self, ioDevice:Qt.QtCore.QIODevice): ...
    def disableRemoting(self, remoteObject:Qt.QtCore.QObject) -> bool: ...
    @typing.overload
    def enableRemoting(self, model:Qt.QtCore.QAbstractItemModel, name:str, roles:typing.List, selectionModel:typing.Optional[Qt.QtCore.QItemSelectionModel]=...) -> bool: ...
    @typing.overload
    def enableRemoting(self, object:Qt.QtCore.QObject, name:str=...) -> bool: ...
    def hostUrl(self) -> Qt.QtCore.QUrl: ...
    def proxy(self, registryUrl:Qt.QtCore.QUrl, hostUrl:Qt.QtCore.QUrl=...) -> bool: ...
    def reverseProxy(self) -> bool: ...
    def setHostUrl(self, hostAddress:Qt.QtCore.QUrl, allowedSchemas:Qt.QtRemoteObjects.QRemoteObjectHostBase.AllowedSchemas=...) -> bool: ...
    def setName(self, name:str): ...


class QRemoteObjectNode(Qt.QtCore.QObject):
    NoError                  : QRemoteObjectNode = ... # 0x0
    RegistryNotAcquired      : QRemoteObjectNode = ... # 0x1
    RegistryAlreadyHosted    : QRemoteObjectNode = ... # 0x2
    NodeIsNoServer           : QRemoteObjectNode = ... # 0x3
    ServerAlreadyCreated     : QRemoteObjectNode = ... # 0x4
    UnintendedRegistryHosting: QRemoteObjectNode = ... # 0x5
    OperationNotValidOnClientNode: QRemoteObjectNode = ... # 0x6
    SourceNotRegistered      : QRemoteObjectNode = ... # 0x7
    MissingObjectName        : QRemoteObjectNode = ... # 0x8
    HostUrlInvalid           : QRemoteObjectNode = ... # 0x9
    ProtocolMismatch         : QRemoteObjectNode = ... # 0xa
    ListenFailed             : QRemoteObjectNode = ... # 0xb

    class ErrorCode(object):
        NoError                  : QRemoteObjectNode.ErrorCode = ... # 0x0
        RegistryNotAcquired      : QRemoteObjectNode.ErrorCode = ... # 0x1
        RegistryAlreadyHosted    : QRemoteObjectNode.ErrorCode = ... # 0x2
        NodeIsNoServer           : QRemoteObjectNode.ErrorCode = ... # 0x3
        ServerAlreadyCreated     : QRemoteObjectNode.ErrorCode = ... # 0x4
        UnintendedRegistryHosting: QRemoteObjectNode.ErrorCode = ... # 0x5
        OperationNotValidOnClientNode: QRemoteObjectNode.ErrorCode = ... # 0x6
        SourceNotRegistered      : QRemoteObjectNode.ErrorCode = ... # 0x7
        MissingObjectName        : QRemoteObjectNode.ErrorCode = ... # 0x8
        HostUrlInvalid           : QRemoteObjectNode.ErrorCode = ... # 0x9
        ProtocolMismatch         : QRemoteObjectNode.ErrorCode = ... # 0xa
        ListenFailed             : QRemoteObjectNode.ErrorCode = ... # 0xb

    @typing.overload
    def __init__(self, parent:typing.Optional[Qt.QtCore.QObject]=...): ...
    @typing.overload
    def __init__(self, registryAddress:Qt.QtCore.QUrl, parent:typing.Optional[Qt.QtCore.QObject]=...): ...

    def acquireDynamic(self, name:str) -> Qt.QtRemoteObjects.QRemoteObjectDynamicReplica: ...
    def acquireModel(self, name:str) -> Qt.QtRemoteObjects.QAbstractItemModelReplica: ...
    def addClientSideConnection(self, ioDevice:Qt.QtCore.QIODevice): ...
    def connectToNode(self, address:Qt.QtCore.QUrl) -> bool: ...
    def heartbeatInterval(self) -> int: ...
    def instances(self, typeName:str) -> typing.List: ...
    def lastError(self) -> Qt.QtRemoteObjects.QRemoteObjectNode.ErrorCode: ...
    def persistedStore(self) -> Qt.QtRemoteObjects.QRemoteObjectAbstractPersistedStore: ...
    def registry(self) -> Qt.QtRemoteObjects.QRemoteObjectRegistry: ...
    def registryUrl(self) -> Qt.QtCore.QUrl: ...
    def setHeartbeatInterval(self, interval:int): ...
    def setName(self, name:str): ...
    def setPersistedStore(self, persistedStore:Qt.QtRemoteObjects.QRemoteObjectAbstractPersistedStore): ...
    def setRegistryUrl(self, registryAddress:Qt.QtCore.QUrl) -> bool: ...
    def timerEvent(self, arg__1:Qt.QtCore.QTimerEvent): ...
    def waitForRegistry(self, timeout:int=...) -> bool: ...


class QRemoteObjectPendingCall(Shiboken.Object):
    NoError                  : QRemoteObjectPendingCall = ... # 0x0
    InvalidMessage           : QRemoteObjectPendingCall = ... # 0x1

    class Error(object):
        NoError                  : QRemoteObjectPendingCall.Error = ... # 0x0
        InvalidMessage           : QRemoteObjectPendingCall.Error = ... # 0x1

    @typing.overload
    def __init__(self): ...
    @typing.overload
    def __init__(self, other:Qt.QtRemoteObjects.QRemoteObjectPendingCall): ...

    def error(self) -> Qt.QtRemoteObjects.QRemoteObjectPendingCall.Error: ...
    @staticmethod
    def fromCompletedCall(returnValue:typing.Any) -> Qt.QtRemoteObjects.QRemoteObjectPendingCall: ...
    def isFinished(self) -> bool: ...
    def returnValue(self) -> typing.Any: ...
    def waitForFinished(self, timeout:int=...) -> bool: ...


class QRemoteObjectPendingCallWatcher(Qt.QtCore.QObject, Qt.QtRemoteObjects.QRemoteObjectPendingCall):

    def __init__(self, call:Qt.QtRemoteObjects.QRemoteObjectPendingCall, parent:typing.Optional[Qt.QtCore.QObject]=...): ...

    def isFinished(self) -> bool: ...
    def waitForFinished(self): ...


class QRemoteObjectRegistry(Qt.QtRemoteObjects.QRemoteObjectReplica):
    def initialize(self): ...
    def pushToRegistryIfNeeded(self): ...
    @staticmethod
    def registerMetatypes(): ...


class QRemoteObjectRegistryHost(Qt.QtRemoteObjects.QRemoteObjectHostBase):

    def __init__(self, registryAddress:Qt.QtCore.QUrl=..., parent:typing.Optional[Qt.QtCore.QObject]=...): ...

    def setRegistryUrl(self, registryUrl:Qt.QtCore.QUrl) -> bool: ...


class QRemoteObjectReplica(Qt.QtCore.QObject):
    Uninitialized            : QRemoteObjectReplica = ... # 0x0
    Default                  : QRemoteObjectReplica = ... # 0x1
    Valid                    : QRemoteObjectReplica = ... # 0x2
    Suspect                  : QRemoteObjectReplica = ... # 0x3
    SignatureMismatch        : QRemoteObjectReplica = ... # 0x4

    class State(object):
        Uninitialized            : QRemoteObjectReplica.State = ... # 0x0
        Default                  : QRemoteObjectReplica.State = ... # 0x1
        Valid                    : QRemoteObjectReplica.State = ... # 0x2
        Suspect                  : QRemoteObjectReplica.State = ... # 0x3
        SignatureMismatch        : QRemoteObjectReplica.State = ... # 0x4

    def __init__(self): ...

    def initialize(self): ...
    def initializeNode(self, node:Qt.QtRemoteObjects.QRemoteObjectNode, name:str=...): ...
    def isInitialized(self) -> bool: ...
    def isReplicaValid(self) -> bool: ...
    def node(self) -> Qt.QtRemoteObjects.QRemoteObjectNode: ...
    def persistProperties(self, repName:str, repSig:Qt.QtCore.QByteArray, props:typing.Sequence): ...
    def propAsVariant(self, i:int) -> typing.Any: ...
    def retrieveProperties(self, repName:str, repSig:Qt.QtCore.QByteArray) -> typing.List: ...
    def send(self, call:Qt.QtCore.QMetaObject.Call, index:int, args:typing.Sequence): ...
    def sendWithReply(self, call:Qt.QtCore.QMetaObject.Call, index:int, args:typing.Sequence) -> Qt.QtRemoteObjects.QRemoteObjectPendingCall: ...
    def setChild(self, i:int, arg__2:typing.Any): ...
    def setNode(self, node:Qt.QtRemoteObjects.QRemoteObjectNode): ...
    def setProperties(self, arg__1:typing.Sequence): ...
    def state(self) -> Qt.QtRemoteObjects.QRemoteObjectReplica.State: ...
    def waitForSource(self, timeout:int=...) -> bool: ...


class QRemoteObjectSettingsStore(Qt.QtRemoteObjects.QRemoteObjectAbstractPersistedStore):

    def __init__(self, parent:typing.Optional[Qt.QtCore.QObject]=...): ...

    def restoreProperties(self, repName:str, repSig:Qt.QtCore.QByteArray) -> typing.List: ...
    def saveProperties(self, repName:str, repSig:Qt.QtCore.QByteArray, values:typing.Sequence): ...

# eof
